package com.imooc.sell.dao;

import com.imooc.sell.dataobject.ProductInfo;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import javax.transaction.Transactional;
import java.util.List;

/**
 * 商品信息处理
 *
 * @author tianli
 */
public interface ProductInfoDao extends JpaRepository<ProductInfo, String>, JpaSpecificationExecutor<ProductInfo> {

    @Transactional
    void deleteByCategoryType(Integer id);
}
